package com.burst.reptile.modular.zp.service.impl;

import com.burst.reptile.modular.zp.entity.ZpCategory;
import com.burst.reptile.modular.zp.mapper.ZpCategoryMapper;
import com.burst.reptile.modular.zp.service.IZpCategoryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户专栏列表 服务实现类
 * </p>
 *
 * @author wujin
 * @since 2020-06-17
 */
@Service
public class ZpCategoryServiceImpl extends ServiceImpl<ZpCategoryMapper, ZpCategory> implements IZpCategoryService {

	@Override
	public List<ZpCategory> listAllByUserId(Long userId) {
		return this.list(new QueryWrapper<ZpCategory>().eq("user_id", userId));
	}

}
